import request from '@/utils/http';

export function operateNoticesByEventId(eventId) {
  return request({
    url: `/api/notices/${eventId}`,
    method: 'get',
  });
}

export function setRead(userId, eventId, params) {
  return request({
    url: `/api/notices/${userId}/${eventId}/receiver`,
    method: 'patch',
    params,
  });
}

